![]() ![]() |
Q:
My I/O Kit kernel driver allocates memory that I later map
to user space using A:
Here’s some background on why this was changed in Mac
OS X 10.2. I/O Kit uses the kernel Under the covers, I/O Kit allocators such as An even nicer change is to allocate buffers and memory descriptors
together with |
memDesc = IOBufferMemoryDescriptor::withOptions( kIODirectionOutIn | kIOMemoryKernelUserShared, alloc_bytes, page_size ); |
Listing 1. Use of |
Once you’ve allocated your buffer using one
of these recommended techniques, it can be shared with user space using [Sep 13 2002] |
Developer Documentation | Technical Notes | Development Kits | Sample Code |